import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/Login.vue')
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('@/views/Home.vue')
  },
  {
    path: '/aiplan',
    name: 'aiplan',
    component: () => import('@/views/AiPlan.vue')
  },
  {
    path: '/plan',
    name: 'plan',
    component: () => import('@/views/Plan.vue')
  },
  {
    path: '/plandetail',
    name: 'plandetail',
    component: () => import('@/views/PlanDetail.vue')
  },
  {
    path: '/person',
    name: 'person',
    component: () => import('@/views/Person.vue')
  },
  {
    path: '/airesult',
    name: 'airesult',
    component: () => import('@/views/AiResult.vue')
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router